//
//  UIButton+Category.m
//  新浪微博OC
//
//  Created by  justinchou on 16/2/26.
//  Copyright © 2016年  justinchou. All rights reserved.
//

#import "UIButton+Category.h"

@implementation UIButton (Category)

- (UIButton *)initWithTitle:(NSString *)title TitleColor:(UIColor *)color BackgroundImageName:(NSString *)backgroundImageName {
    self = [[UIButton alloc] init];
    
    [self setTitle:title forState:UIControlStateNormal];
    [self setTitleColor:color forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage imageNamed:backgroundImageName] forState:UIControlStateNormal];
    
    return self;
}

@end
